package com.example.demo01.config;

import org.apache.ibatis.session.Configuration;
import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;

/**
 * MyBatis配置类
 * 自定义MyBatis的配置规则；给容器中添加ConfigurationCustomizer即可
 * */
//@org.springframework.context.annotation.Configuration
public class MyBatisConfig {

//    @Bean
//    public ConfigurationCustomizer configurationCustomizer(){
//        return new ConfigurationCustomizer() {
//            @Override
//            public void customize(Configuration configuration) {
//                configuration.setMapUnderscoreToCamelCase(true);//开启使用驼峰命名法
//            }
//        };
//    }
}
